package org.sgx.gwtsjcltest.client.webcrypt.ui;

//import org.sgx.gapigui.client.Main;s
import org.sgx.gwtsjcltest.client.webcrypt.Main;
import org.sgx.gwtsjcltest.client.webcrypt.state.StateManager;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class Menu extends Composite {

	private static MenuUiBinder uiBinder = GWT.create(MenuUiBinder.class);

	interface MenuUiBinder extends UiBinder<Widget, Menu> {
	}

	@UiField
	Button base64Button; 

	public Menu() {
		initWidget(uiBinder.createAndBindUi(this));
		base64Button.addClickHandler(new ClickHandler() {			
			@Override
			public void onClick(ClickEvent event) {
				Main.state().navigate(StateManager.STATE_BASE64);
			}
		}); 
		
	}

}
